package com.zhang.entity;

import java.util.HashMap;
import java.util.Map;

public class Cart {
    private Map<Integer,CartItem> buyMap = new HashMap<>();
    private Map<Integer,CartItem> removeMap = new HashMap<>();
    private Double saveMoney;
    private Double totalMoney;

    public Map<Integer, CartItem> getBuyMap() {
        return buyMap;
    }

    public void setBuyMap(Map<Integer, CartItem> buyMap) {
        this.buyMap = buyMap;
    }

    public Map<Integer, CartItem> getRemoveMap() {
        return removeMap;
    }

    public void setRemoveMap(Map<Integer, CartItem> removeMap) {
        this.removeMap = removeMap;
    }

    public Double getSaveMoney() {
        return saveMoney;
    }

    public void setSaveMoney(Double saveMoney) {
        this.saveMoney = saveMoney;
    }

    public Double getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(Double totalMoney) {
        this.totalMoney = totalMoney;
    }

    public Cart(Map<Integer, CartItem> buyMap, Map<Integer, CartItem> removeMap, Double saveMoney, Double totalMoney) {
        this.buyMap = buyMap;
        this.removeMap = removeMap;
        this.saveMoney = saveMoney;
        this.totalMoney = totalMoney;
    }

    public Cart() {
    }
}
